#include "matrix.h"
extern unsigned char row[8]; 
extern unsigned char col[8];
void setXY(int x,int y)
{
  digitalWrite(row[y],HIGH);
  digitalWrite(col[x],LOW);
}

void resetXY(int x,int y)
{
  digitalWrite(row[y],LOW);
  digitalWrite(col[x],HIGH);
}

void clear()
{
  for(int i=0;i<8;i++)
  {
    digitalWrite(row[i],LOW);
    digitalWrite(col[i],HIGH);
  }
}
